<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page errorPage="error.jsp"%>
<%@ page isThreadSafe="true"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %> 
<html> 
	<head>
		<title>修改宠物信息</title>
		<link rel="stylesheet" type="text/css" href="styles.css">
	</head>
	<body>
		
		<!-- 判断访客是否登录了,没有返回主页 -->
	<% 
	
		if(pageContext.getSession().getAttribute("petpo")==null){
		response.sendRedirect("index.jsp");
		return;
		}
	%>
	
	
	
	
	
	
	
	
	
	<p><img src="img\backdrop.gif"/></p>
	<div style="float:left"><a href="index.jsp">首页</a>| <a href="foster.jsp">apply for your own pet </a></div>
	<div style="float: right;"><a href="queryinfo.jsp">| 宠物信息查询</a></div>
	
	<p>&nbsp;</p>
	<DIV id=tabline>&nbsp;</DIV>
		<html:form action="foster.do">
			<table  align="center">
			宠物id:<bean:write property="id" name="petpo"/>
			<hr />
			
			<tr><td>name :  <br></td><td class="dgreen"><html:text property="name" name="petpo" maxlength="30"/></td><td rowspan="5" ><img name="pic" id="pic" src="img\mkitty1.gif" /></td></tr>
			<tr><td>gender :  <br></td><td> &nbsp;<bean:write property="gender" name="petpo"/></td><td></td></tr>
			<tr><td>power :  <br></td><td><bean:write property="power" name="petpo"/></td></tr>
			<tr><td>love :  <br></td><td><bean:write property="love" name="petpo"/></td></tr>				
			<tr><td>ability :  <br></td><td><bean:write property="ability" name="petpo"/></td></tr>
			<tr><td>intro :  <br></td><td><html:textarea property="intro" name="petpo" rows="3" cols="20"/><html:errors property="intro"/></td></tr>

			<tr><td>email :  <br></td><td><html:text property="hostEmail" name="petpo" maxlength="50"/><html:errors property="email"/></td></tr>
			<tr><td>hostname :  <br></td><td><html:text property="hostName" name="petpo" maxlength="30"/><html:errors property="hostname"/></td></tr>

			<tr><td><html:submit/></td><td><html:cancel/></td></tr>
			</table>
		</html:form>
	</body>
</html>

